package calculate